﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Football.Models
{
    public class GamePlayer
    {
        [DisplayName("Game Player ID")]
        [Required]
        public int GamePlayerId { get; set; }

        [DisplayName("Game ID")]
        [Required]
        public int GameId { get; set; }

        [DisplayName("Player Name")]
        [UIHint("Enter a the player's name.")]
        [Required(ErrorMessage="To add a new player, enter their name.")]
        public string Name { get; set; }

        [DisplayName("Date Added")]
        public System.DateTime? CreationDate { get; set; }

        [DisplayName("Status")]
        public int GamePlayerStatusId { get; set; }

        public virtual Game Game { get; set; }

        public virtual GamePlayerStatus GamePlayerStatuses { get; set; }

    }

}